<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>
    <body>
        
    </body>
    <script>
        // 遍历
        // for循环
        // for ... in  快速遍历/快速枚举法      (快速：不需要判断)

        // for循环法
        var arr=new Array(10,20,30,40,50)
        for(var i=0;i<arr.length;i++){
            document.write(arr[i]+"<br>")
        }
        for(var j in arr){
            document.write(arr[j]+"<br>")
        }

    </script>
</html>